package top.zhangjianyong.tools.service.mybatis;

import com.baomidou.mybatisplus.extension.service.IService;
import top.zhangjianyong.tools.entity.HotVideo;

import java.time.LocalDate;
import java.util.List;

public interface IHotVideoService extends IService<HotVideo> {
    HotVideo qryByTitleAuthor(HotVideo hotVideo);

    List<HotVideo> listByCreate(LocalDate now);

    boolean watch(Long videoId, Integer watchFlag);

    List<HotVideo> listLimit(int limit);

    List<HotVideo> listUserLimit(Long userId, int limit);
}
